//BusClearingFundRealationModel
//2020-08-14 15:07:03

package models

import (
	"git.900sui.cn/kc/base/common/functions"
	"git.900sui.cn/kc/base/common/models/base"
	"git.900sui.cn/kc/kcgin/orm"
)

//表结构体
type BusClearingFundRealationModel struct {
	Model *base.Model
	Field BusClearingFundRealationModelField
}

//表字段
type BusClearingFundRealationModelField struct {
	T_table             string `default:"bus_clearing_fund_realation"`
	F_id                string `default:"id"`
	F_bus_id            string `default:"bus_id"`
	F_fund_channel_id   string `default:"fund_channel_id"`
	F_fund_channel_type string `default:"fund_channel_type"`
	F_order_sn          string `default:"order_sn"`
	F_create_time       string `default:"create_time"`
}

//初始化
func (b *BusClearingFundRealationModel) Init(ormer ...orm.Ormer) *BusClearingFundRealationModel {
	functions.ReflectModel(&b.Field)
	b.Model = base.NewModel(b.Field.T_table, ormer...)
	return b
}

//新增数据
func (b *BusClearingFundRealationModel) Insert(data map[string]interface{}) int {
	result, _ := b.Model.Data(data).Insert()
	return result
}
